﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Web.Script.Serialization;

namespace UnitTest
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            string data = "[{\"id\":null,\"UserName\":\"user\",\"Email\":\"user@qq.com\",\"Roles\":[\"\u666e\u901a\u7528\u6237\"],\"Created\":\"2013-04-09 20:01:31\",\"LastLogonDate\":\"\",\"IsApproved\":true}]";
            JavaScriptSerializer jsonSerializer = new JavaScriptSerializer();
            WebUI.Models.AccountModel model = jsonSerializer.Deserialize<WebUI.Models.AccountModel>(data);
        }
    }
}
